/*
 * @Date: 2025-05-06 09:21:39
 * @LastEditors: lyx
 * @LastEditTime: 2025-05-08 10:04:11
 * @FilePath: \tpt-cnpc\src\components\Conversation\Head\index.tsx
 * @Description: 
 */
import { Tabs } from "antd";
// import {
//   Tabs,
// } from "@supcon/supcon-5t-design";
import styles from "./index.module.less";
import { useContext } from "react";
import { BigScreenContext } from "@/pages/BigScreen/context/BigScreenContext";
const Head = (props: any) => {
  const { tab, onChange } = props;
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
  const { chatRef, setAnomalyJson } = useContext(BigScreenContext);

  return (
    <div className={styles.head}>
      <Tabs
        activeKey={tab}
        tabBarStyle={{
          color: "red",
        }}
        onChange={onChange}
        className="chat-tabs"
        items={[
          {
            label: `当前对话`,
            key: "0",
          },
          {
            label: `历史记录`,
            key: "1",
          },
        ]}
      />
      {/* <Space>
        <Button
          onClick={() => {
            chatRef?.current?.handleChat("今天天气怎么样？");
          }}
        >
          左侧点击触发提问
        </Button>
        <Button
          onClick={() => {
            setAnomalyJson({ content: "test" });
          }}
        >
          点击触发请求预警数据
        </Button>
      </Space> */}
    </div>
  );
};
export default Head;
